package com.kun.event.event;

import org.springframework.context.ApplicationEvent;

/**
 * @author fangkun
 */
public class MessageEvent extends ApplicationEvent {

    private String message;

    public MessageEvent(Object source, String message){
        super(source);
        this.message = message;
    }

    @Override
    public String toString() {
        return "MessageEvent{" +
                "message='" + message + '\'' +
                '}';
    }
}
